package top.superflow.core.resource

class PooledResourceStatus protected(initStatus : String){

  val status = initStatus

  def getStatus = {
    this.status
  }

  def equals(that : PooledResourceStatus): Boolean = {
    this.status.equals(that.getStatus)
  }

  override def hashCode() : Int = {
    this.status.hashCode()
  }

}

case object IDLE extends PooledResourceStatus("idle")

case object INUSE extends PooledResourceStatus("inuse")

case object LOCK extends PooledResourceStatus("lock")